CREATE TABLE [Upload].[ColumnMap]
(
[ColumnMapId] [int] NOT NULL IDENTITY(1, 1),
[SourceId] [int] NOT NULL,
[ColumnMapDefId] [int] NULL,
[COLUMN_NAME] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [Upload].[ColumnMap] ADD CONSTRAINT [PK_ColumnMapId] PRIMARY KEY CLUSTERED  ([ColumnMapId]) ON [PRIMARY]
GO
ALTER TABLE [Upload].[ColumnMap] ADD CONSTRAINT [FK_ColumnMap_SourceId] FOREIGN KEY ([SourceId]) REFERENCES [Upload].[Sources] ([SourceId])
GO
